goog.provide('view.user');
goog.require('goog.dom');

/**
 * @constructor
 */
view.user = function(){
}

/**
 * Show userinfo on page
 */
view.user.prototype.showInfo = function(){
    var name  = socr.getInstance().getModel().getName();
    var age   = socr.getInstance().getModel().getAge();
    var email = socr.getInstance().getModel().getEmail();

    var info = goog.dom.createDom('ul',{'id':'userInfo'},
        [
            goog.dom.createDom('li',{},'Name: ' + name),
            goog.dom.createDom('li',{},'Age: ' + age),
            goog.dom.createDom('li',{},'email: ' + email)
        ]
    );
    goog.dom.append(document.body, info);
}